home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / manageme / tcpdump-.001 / tcpdump-~ / tcpdump-3.0.2-linux / tcpdump-3.0.2 / os-irix5.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-21  |  1.9 KB  |  60 lines

  1. /*
  2.  * Copyright (c) 1994, 1995
  3.  *    The Regents of the University of California.  All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms, with or without
  6.  * modification, are permitted provided that: (1) source code distributions
  7.  * retain the above copyright notice and this paragraph in its entirety, (2)
  8.  * distributions including binary code include the above copyright notice and
  9.  * this paragraph in its entirety in the documentation or other materials
  10.  * provided with the distribution, and (3) all advertising materials mentioning
  11.  * features or use of this software display the following acknowledgement:
  12.  * ``This product includes software developed by the University of California,
  13.  * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
  14.  * the University nor the names of its contributors may be used to endorse
  15.  * or promote products derived from this software without specific prior
  16.  * written permission.
  17.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  18.  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  19.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  20.  *
  21.  * @(#) $Header: os-irix5.h,v 1.3+ 94/01/29 15:37:33 leres Exp $ (LBL)
  22.  */
  23.  
  24. /* Map things in the ether_arp struct */
  25. #define SHA(ap) ((ap)->arp_sha)
  26. #define SPA(ap) ((ap)->arp_spa)
  27. #define THA(ap) ((ap)->arp_tha)
  28. #define TPA(ap) ((ap)->arp_tpa)
  29.  
  30. #define EDST(ep) ((ep)->ether_dhost)
  31. #define ESRC(ep) ((ep)->ether_shost)
  32.  
  33. #ifndef ETHERTYPE_REVARP
  34. #define ETHERTYPE_REVARP 0x8035
  35. #endif
  36.  
  37. #ifndef ETHERTYPE_TRAIL
  38. #define ETHERTYPE_TRAIL 0x1000
  39. #endif
  40.  
  41. #ifndef    IPPROTO_ND
  42. /* From <netinet/in.h> on a Sun somewhere. */
  43. #define    IPPROTO_ND    77
  44. #endif
  45.  
  46. #ifndef REVARP_REQUEST
  47. #define REVARP_REQUEST 3
  48. #endif
  49. #ifndef REVARP_REPLY
  50. #define REVARP_REPLY 4
  51. #endif
  52.  
  53. /* newish RIP commands */
  54. #ifndef    RIPCMD_POLL
  55. #define    RIPCMD_POLL 5
  56. #endif
  57. #ifndef    RIPCMD_POLLENTRY
  58. #define    RIPCMD_POLLENTRY 6
  59. #endif
  60.